#############################################################
# Generic Makefile for Python Program
#
# License: GPL (General Public License)
# Author:  Huoty <sudohuoty AT gmail DOT com>
# Date:    2016/11/04
#
# Description:
# ------------
# Klib is a utility pyton library
#
# Make Target:
# ------------
# The Makefile provides the following targets to make:
#   $ make           Preview install package
#   $ make install   Install package to path
#   $ make clean     Clean objects and the cache file
#   $ make test      Run test case by pytest
#   $ make publish   Publish package
#
#============================================================

default:
	pip install --pre -e .

install:
	pip install .

clean:
	rm -rf *.pyc
	rm -rf *.pyo
	rm -rf build dist *.egg-info
	rm -rf __pycache__

test:
	py.test -xvvls tests/

publish:
	python setup.py sdist bdist_wheel upload

.PHONY: clean test
